package com.iptv.grape.net.Entity;

import android.util.Log;

import com.google.gson.Gson;

// 频道类别接口返回值
public class ChannelTypeResult extends NetBaseResult {
    private ChannelTypeDataResult data;

    public ChannelTypeDataResult getData(){
        return this.data;
    }

    public void setData(ChannelTypeDataResult data){
        this.data = data;
    }

    public static ChannelTypeResult createForJson(String json){
        try {
            ChannelTypeResult channelTypeResult = new Gson().fromJson(json, ChannelTypeResult.class);
            return channelTypeResult;
        }
        catch (Exception e){
            //Log.e("GrapeTVChannelTypeResult",e.getMessage() );
            return null;
        }
    }
}
